package com.wy.dao;

import com.wy.pojo.Danyuan;
import com.wy.pojo.Dengj;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;

import java.util.List;

public interface DengjDao extends JpaRepository<Dengj,Integer> {

    @Query(value = "SELECT * FROM dengj WHERE huzuid=?1",nativeQuery = true)
    List<Dengj> searchidAll(Integer huzuid);
}
